package template;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JPanel;

public class template extends JPanel{
	private static final long serialVersionUID = 1L;
	protected Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
	protected int xWidth = screen.width;
	protected int yHeight = screen.height;
	protected JPanel panelTop;
	protected JPanel panelLeft;
	protected JPanel panelCenter;
	protected JPanel panelFooter;
	
	public void PanelTop() {
		panelTop = new JPanel();
		panelTop.setBackground(Color.BLACK);
		panelTop.setPreferredSize(new Dimension(xWidth, (int)(xWidth*0.025)));
	}
	
	public void setPanelTop(JPanel panelTop) {
		this.panelTop = panelTop;
	}
	
	public void getPanelLeft() {
		panelLeft = new JPanel();
		panelLeft.setBackground(Color.GREEN);
		panelLeft.setPreferredSize(new Dimension(xWidth, (int)(xWidth*0.20)));
	}
	
	public void getPanelCenter() {
		panelCenter= new JPanel();
		panelCenter.setBackground(Color.BLUE);
		panelCenter.setPreferredSize(new Dimension(xWidth, (int)(xWidth*0.80)));
	}
	
	public void getPanelFooter() {
		panelFooter= new JPanel();
		panelFooter.setBackground(Color.RED);
		panelFooter.setPreferredSize(new Dimension(xWidth, (int)(xWidth*0.015)));
	}
}
